/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package hearts;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

/**
 *
 * @author TAI
 */
public class myMouseListener extends MouseAdapter{
	private int[] signal;
	public myMouseListener(int[] signal){
		this.signal=signal;
	}

    @Override
	public void mousePressed(MouseEvent e) {
		signal[0]=Integer.parseInt(e.getComponent().getName());
	}

}
